package com.martin.fast_frame_compose.router

import com.martin.fast_frame_compose.page.main.MainActivity
import dev.DevUtils

// 获取导航
fun getNavController() = getMainViewModel().navController

// 获取主ViewModel
fun getMainViewModel() = (DevUtils.getTopActivity() as MainActivity).viewModel